package com.zjkj.mp.vo.message;

import java.util.HashMap;
import java.util.Map;

/**
 * 消息状态
 * @author wxd
 *
 */
public class MessageState {
	
	/**
	 * 新建状态，待审核
	 */
	public static final String NEW = "00";
	
	/**
	 * 审核通过
	 */
	public static final String AUDIT_OK = "10";
	
	/**
	 * 审核未通过
	 */
	public static final String AUDIT_NO = "11";
	
	/**
	 * 发送成功
	 */
	public static final String SEND_OK = "20";
	
	/**
	 * 发送失败
	 */
	public static final String SEND_NO = "21";
	
	/**
	 * 已被设为黑名单，不可发送短信
	 */
	public static final String HMD_OK = "30";
	
	/**
	 * 用户余额不足，请充值
	 */
	public static final String BAL_NO = "40";
	
	/**
	 * 请开启一个可发送通道
	 */
	public static final String TD_NO = "50";
	
	/**
	 * 请先进行去重、分析操作
	 */
	public static final String QCFX_NO = "60";
	
	private static Map<String,String>stateNames = new HashMap<String, String>();
	static{
		stateNames.put(NEW, "待审核");
		stateNames.put(AUDIT_OK, "审核通过");
		stateNames.put(AUDIT_NO, "审核未通过");
		stateNames.put(SEND_NO, "发送失败");
		stateNames.put(SEND_OK, "发送成功");
		stateNames.put("HMD_OK", "列入黑名单");
		stateNames.put("BAL_NO", "余额不足");
		stateNames.put("TD_NO", "通道未开启");
		stateNames.put("QCFX_NO", "执行去重分析");
	}
	
	/**
	 * 得到状态的中文名称
	 * @param state
	 * @return
	 */
	public static String getStateName(String state){
		return  stateNames.get(state);
	}	
}
